summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-08-02 05:45:46 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-08-02 06:20:52 (EDT)
commitc6dbf4726d3cd4a98fe24929a28c78e880b39024 (patch)
tree8365c9ef219a06f78d25a501c717c5ab65ced04f /Makefile.in
parent6b31e57b664970bc6caeef0c840403862b3c7172 (diff)
Start rewriting build system.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in67
1 files changed, 25 insertions, 42 deletions
diff --git a/Makefile.in b/Makefile.in
index 9dbd4f0..218a0ff 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -17,48 +17,35 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-SHELL = @shell@
-INSTALL = @install@
-MAKE = @make@
+package_name = @package_name@
+package_version= @package_version@
+
+srcdir = @srcdir@
+prefix = @prefix@
+bindir = @bindir@
+libdir = @libdir@
+datadir = @datadir@
+mandir = @mandir@
-SRCDIR = @srcdir@
-PREFIX = @prefix@
-BINDIR = @bindir@
-LIBDIR = @libdir@
-DATADIR = @datadir@
-MANDIR = @mandir@
+sh = @sh@
-PACKAGE = @package@
-VERSION = @version@
+INSTALL = @install@
-distdir = $(PACKAGE)-$(VERSION)
+distdir = $(package_name)-$(package_version)
distfiles = configure Makefile.in COPYING README INSTALL ChangeLog TODO \
genopkg.sh
.SUFFIXES:
-.PHONY: all
-all: sedscript
+all:
@printf 'Making executable files...\n'
@cd src && $(MAKE) all
- @printf 'Making library files...\n'
- @cd lib && $(MAKE) all
- @printf 'Making manual pages...\n'
- @cd man && $(MAKE) all
+# @printf 'Making library files...\n'
+# @cd lib && $(MAKE) all
+# @printf 'Making manual pages...\n'
+# @cd man && $(MAKE) all
-sedscript:
- @printf 'Writing sed script...\n'
- @echo 's&@@PACKAGE@@&$(PACKAGE)&' > sedscript
- @echo 's&@@VERSION@@&$(VERSION)&' >> sedscript
- @echo 's&@@BINDIR@@&$(BINDIR)&' >> sedscript
- @echo 's&@@DATADIR@@&$(DATADIR)&' >> sedscript
- @echo 's&@@LIBDIR@@&$(LIBDIR)&' >> sedscript
- @echo 's&@@SHELL@@&$(SHELL)&' >> sedscript
-
-.PHONY: clean
clean:
- @printf 'Deleting sed script...\n'
- @rm -f sedscript
@printf 'Cleaning executable files...\n'
@cd src && $(MAKE) clean
@printf 'Cleaning library files...\n'
@@ -66,7 +53,6 @@ clean:
@printf 'Cleaning manual pages...\n'
@cd man && $(MAKE) clean
-.PHONY: install
install: all
@printf 'Generating installation configuration...\n'
@if [ -n '$(DESTDIR)' ]; then \
@@ -83,7 +69,6 @@ install: all
@printf 'Installing manual pages...\n'
@cd man && $(MAKE) $$(cat ../install.config) install
-.PHONY: uninstall
uninstall:
@printf 'Uninstalling executable files...\n'
@cd src && $(MAKE) $$(cat ../install.config) uninstall
@@ -92,19 +77,17 @@ uninstall:
@printf 'Uninstalling manual pages...\n'
@cd man && $(MAKE) $$(cat ../install.config) uninstall
-.PHONY: distdir dist dist-gzip dist-bzip2
-
-distdir:
- @[ -d '$(distdir)' ] || mkdir '$(distdir)'
- @cp -pR $(distfiles) $(distdir)
- @cd src && $(MAKE) distdir
- @cd lib && $(MAKE) distdir
- @cd man && $(MAKE) distdir
+$(distdir):
+ @mkdir -p '$(distdir)'
+ @cp -pR $(distfiles) '$(distdir)'
+ @cd src && $(MAKE) '../$(distdir)/src'
+ @cd lib && $(MAKE) '../$(distdir)/lib'
+ @cd man && $(MAKE) '../$(distdir)/man'
-dist dist-gzip: distdir
+dist dist-gzip: $(distdir)
@tar -cf - '$(distdir)' | gzip -9c > '$(distdir).tar.gz'
@rm -Rf '$(distdir)'
-dist-bzip2: distdir
+dist-bzip2: $(distdir)
@tar -cf - '$(distdir)' | bzip2 -9c > '$(distdir).tar.bz2'
@rm -Rf '$(distdir)'