diff options
| author | Marc Vertes <mvertes@free.fr> | 2021-02-21 10:18:33 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2021-02-21 10:18:33 +0100 |
| commit | 68017f46742241cd6842422b7c009e59d65f73a4 (patch) | |
| tree | 6f0348082225b37a8683f9f19b6df33b168596ac | |
creation
| -rw-r--r-- | .gitignore | 7 | ||||
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | build.mk | 46 | ||||
| -rw-r--r-- | graphviz/Makefile | 4 |
4 files changed, 63 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..64dc328 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +.*.swp +.build +.configure +.extract +.fetch +.install +*/*-* diff --git a/README.md b/README.md new file mode 100644 index 0000000..6b8d513 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +Build +===== + +Fetch, configure, build and install packages from source. + +For unix-like environments, based on GNU make. diff --git a/build.mk b/build.mk new file mode 100644 index 0000000..8a18571 --- /dev/null +++ b/build.mk @@ -0,0 +1,46 @@ +# Rules to fetch, build and install external source packages. +# +# TODO: +# - default commands +# - rules for pre-req dependencies +# - rules to build and maintain patches +# +ARC ?= $(notdir $(URL)) +DIR ?= $(basename $(basename $(ARC))) + +clean: + rm -rf .install .build .configure .fetch .extract $(DIR) + +debug: + @echo arc: $(ARC) + @echo dir: $(DIR) + +install: .install +build: .build +configure: .configure +extract: .extract +fetch: .fetch + +uninstall: .install + cd $(DIR) && sudo make uninstall + rm .install + +.install: .build + cd $(DIR) && sudo make install + touch $@ + +.build: .configure + cd $(DIR) && make + touch $@ + +.configure: .extract + cd $(DIR) && ./configure $(CONFIGURE_FLAGS) + @touch $@ + +.extract: .fetch + gunzip < $(ARC) | tar xf - + @touch $@ + +.fetch: + curl -L $(URL) -o $(ARC) + @touch $@ diff --git a/graphviz/Makefile b/graphviz/Makefile new file mode 100644 index 0000000..633d9ed --- /dev/null +++ b/graphviz/Makefile @@ -0,0 +1,4 @@ +URL = https://gitlab.com/graphviz/graphviz/-/package_files/7097035/download +ARC = graphviz-2.46.1.tar.gz + +include ../build.mk |
