aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-30 15:26:13 +0100
committerLoïc Minier <lool@dooz.org>2010-01-30 15:26:13 +0100
commit60fb1bf22761cd6080fc2e9cc084d22b889fbb6f (patch)
tree37c033dcd6653871afdeaf9df71b8e667446e70a /Makefile
parent2d8275928e4787b0e529ac1a579af9554bceb0a2 (diff)
downloadpbuilder-60fb1bf22761cd6080fc2e9cc084d22b889fbb6f.tar
pbuilder-60fb1bf22761cd6080fc2e9cc084d22b889fbb6f.tar.gz
Use directory vars in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile156
1 files changed, 82 insertions, 74 deletions
diff --git a/Makefile b/Makefile
index 70ec4b4..527b1b0 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,14 @@ INSTALL_DIRECTORY = $(INSTALL) -d -m 0755
INSTALL_FILE = $(INSTALL) -m 0644
INSTALL_EXECUTABLE = $(INSTALL) -m 0755
+DESTDIR :=
+SYSCONFDIR := $(DESTDIR)/etc
+BINDIR := $(DESTDIR)/usr/bin
+PKGLIBDIR := $(DESTDIR)/usr/lib/pbuilder
+SBINDIR := $(DESTDIR)/usr/sbin
+EXAMPLEDIR := $(DESTDIR)/usr/share/doc/pbuilder/examples
+PKGDATADIR := $(DESTDIR)/usr/share/pbuilder
+
#
# To add new script, add it to here, so that it will be tested. And then add a rule to install: target.
#
@@ -61,87 +69,87 @@ TAGS:
etags pbuilder-* pbuilder
install:
- $(INSTALL_DIRECTORY) $(DESTDIR)/etc/pbuilder
+ $(INSTALL_DIRECTORY) $(SYSCONFDIR)/pbuilder
+ $(INSTALL_DIRECTORY) $(SBINDIR)
+ $(INSTALL_DIRECTORY) $(BINDIR)
$(INSTALL_DIRECTORY) $(DESTDIR)/etc/bash_completion.d
- $(INSTALL_DIRECTORY) $(DESTDIR)/usr/sbin
- $(INSTALL_DIRECTORY) $(DESTDIR)/usr/bin
- $(INSTALL_DIRECTORY) $(DESTDIR)/usr/lib/pbuilder
- $(INSTALL_DIRECTORY) $(DESTDIR)/usr/share/pbuilder
- $(INSTALL_DIRECTORY) $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_DIRECTORY) $(DESTDIR)/usr/share/doc/pbuilder/examples/rebuild
- $(INSTALL_DIRECTORY) $(DESTDIR)/usr/share/doc/pbuilder/examples/pbuilder-test
- $(INSTALL_DIRECTORY) $(DESTDIR)/usr/share/doc/pbuilder/examples/lvmpbuilder
- $(INSTALL_DIRECTORY) $(DESTDIR)/usr/share/doc/pbuilder/examples/lvmpbuilder/lib
+ $(INSTALL_DIRECTORY) $(PKGLIBDIR)
+ $(INSTALL_DIRECTORY) $(PKGDATADIR)
+ $(INSTALL_DIRECTORY) $(EXAMPLEDIR)
+ $(INSTALL_DIRECTORY) $(EXAMPLEDIR)/rebuild
+ $(INSTALL_DIRECTORY) $(EXAMPLEDIR)/pbuilder-test
+ $(INSTALL_DIRECTORY) $(EXAMPLEDIR)/lvmpbuilder
+ $(INSTALL_DIRECTORY) $(EXAMPLEDIR)/lvmpbuilder/lib
$(INSTALL_DIRECTORY) $(DESTDIR)/var/cache/pbuilder/pbuilder-mnt
$(INSTALL_DIRECTORY) $(DESTDIR)/var/cache/pbuilder/pbuilder-umlresult
- $(INSTALL_EXECUTABLE) pbuilder-buildpackage $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pbuilder-buildpackage-funcs $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pbuilder-createbuildenv $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pbuilder-updatebuildenv $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pbuilder-loadconfig $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pbuilder-runhooks $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pbuilder-checkparams $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pdebuild-checkparams $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pbuilder-uml-checkparams $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pdebuild-uml-checkparams $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pbuilder-modules $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pbuilder $(DESTDIR)/usr/sbin
- $(INSTALL_EXECUTABLE) pdebuild $(DESTDIR)/usr/bin
- $(INSTALL_EXECUTABLE) pbuilder-user-mode-linux $(DESTDIR)/usr/bin
- $(INSTALL_EXECUTABLE) pdebuild-user-mode-linux $(DESTDIR)/usr/bin
- $(INSTALL_EXECUTABLE) debuild-pbuilder $(DESTDIR)/usr/bin
-
- $(INSTALL_EXECUTABLE) pbuilder-satisfydepends-classic $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pbuilder-satisfydepends-gdebi $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pbuilder-satisfydepends-aptitude $(DESTDIR)/usr/lib/pbuilder/
+ $(INSTALL_EXECUTABLE) pbuilder-buildpackage $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pbuilder-buildpackage-funcs $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pbuilder-createbuildenv $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pbuilder-updatebuildenv $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pbuilder-loadconfig $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pbuilder-runhooks $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pbuilder-checkparams $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pdebuild-checkparams $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pbuilder-uml-checkparams $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pdebuild-uml-checkparams $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pbuilder-modules $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pbuilder $(SBINDIR)
+ $(INSTALL_EXECUTABLE) pdebuild $(BINDIR)
+ $(INSTALL_EXECUTABLE) pbuilder-user-mode-linux $(BINDIR)
+ $(INSTALL_EXECUTABLE) pdebuild-user-mode-linux $(BINDIR)
+ $(INSTALL_EXECUTABLE) debuild-pbuilder $(BINDIR)
+
+ $(INSTALL_EXECUTABLE) pbuilder-satisfydepends-classic $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pbuilder-satisfydepends-gdebi $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pbuilder-satisfydepends-aptitude $(PKGLIBDIR)
# install -aptitude flavour as the default satisfydepends
- ln -sf pbuilder-satisfydepends-aptitude $(DESTDIR)/usr/lib/pbuilder/pbuilder-satisfydepends
- $(INSTALL_EXECUTABLE) pbuilder-satisfydepends-experimental $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pbuilder-satisfydepends-checkparams $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pbuilder-satisfydepends-funcs $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_EXECUTABLE) pdebuild-internal $(DESTDIR)/usr/lib/pbuilder/
- $(INSTALL_FILE) pbuilderrc $(DESTDIR)/usr/share/doc/pbuilder/examples
+ ln -sf pbuilder-satisfydepends-aptitude $(PKGLIBDIR)/pbuilder-satisfydepends
+ $(INSTALL_EXECUTABLE) pbuilder-satisfydepends-experimental $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pbuilder-satisfydepends-checkparams $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pbuilder-satisfydepends-funcs $(PKGLIBDIR)
+ $(INSTALL_EXECUTABLE) pdebuild-internal $(PKGLIBDIR)
+ $(INSTALL_FILE) pbuilderrc $(EXAMPLEDIR)
$(INSTALL_FILE) bash_completion.pbuilder $(DESTDIR)/etc/bash_completion.d/pbuilder
- $(INSTALL_FILE) pbuilderrc $(DESTDIR)/usr/share/pbuilder
- $(INSTALL_FILE) pbuilder-uml.conf $(DESTDIR)/etc/pbuilder
- $(INSTALL_FILE) pbuilder-uml.conf $(DESTDIR)/usr/share/pbuilder
- $(INSTALL_EXECUTABLE) examples/B90lintian $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/B91dpkg-i $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/B92test-pkg $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/C10shell $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/C11screen $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/D10tmp $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/D20addnonfree $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/D80no-man-db-rebuild $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/D90chrootmemo $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/F90chrootmemo $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/B90list-missing $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/B91debc $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/execute_installtest.sh $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/execute_paramtest.sh $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/pbuilder-distribution.sh $(DESTDIR)/usr/share/doc/pbuilder/examples
- $(INSTALL_EXECUTABLE) examples/rebuild/buildall $(DESTDIR)/usr/share/doc/pbuilder/examples/rebuild
- $(INSTALL_EXECUTABLE) examples/rebuild/getlist $(DESTDIR)/usr/share/doc/pbuilder/examples/rebuild
- $(INSTALL_FILE) examples/rebuild/README $(DESTDIR)/usr/share/doc/pbuilder/examples/rebuild
- $(INSTALL_FILE) examples/pbuilder-test/README $(DESTDIR)/usr/share/doc/pbuilder/examples/pbuilder-test
- $(INSTALL_EXECUTABLE) examples/pbuilder-test/000_prepinstall $(DESTDIR)/usr/share/doc/pbuilder/examples/pbuilder-test
- $(INSTALL_EXECUTABLE) examples/pbuilder-test/001_apprun $(DESTDIR)/usr/share/doc/pbuilder/examples/pbuilder-test
- $(INSTALL_EXECUTABLE) examples/pbuilder-test/002_libfile $(DESTDIR)/usr/share/doc/pbuilder/examples/pbuilder-test
- $(INSTALL_FILE) examples/pbuilder-test/002_sample.c $(DESTDIR)/usr/share/doc/pbuilder/examples/pbuilder-test
- $(INSTALL_EXECUTABLE) examples/pbuilder-test/003_makecheck $(DESTDIR)/usr/share/doc/pbuilder/examples/pbuilder-test
- $(INSTALL_EXECUTABLE) examples/pbuilder-test/004_ldd $(DESTDIR)/usr/share/doc/pbuilder/examples/pbuilder-test
-
- $(INSTALL_FILE) examples/lvmpbuilder/README $(DESTDIR)/usr/share/doc/pbuilder/examples/lvmpbuilder
- $(INSTALL_FILE) examples/lvmpbuilder/STRATEGY $(DESTDIR)/usr/share/doc/pbuilder/examples/lvmpbuilder
- $(INSTALL_EXECUTABLE) examples/lvmpbuilder/lvmbuilder $(DESTDIR)/usr/share/doc/pbuilder/examples/lvmpbuilder
- $(INSTALL_FILE) examples/lvmpbuilder/lib/lvmbuilder-checkparams $(DESTDIR)/usr/share/doc/pbuilder/examples/lvmpbuilder/lib
- $(INSTALL_FILE) examples/lvmpbuilder/lib/lvmbuilder-modules $(DESTDIR)/usr/share/doc/pbuilder/examples/lvmpbuilder/lib
- $(INSTALL_FILE) examples/lvmpbuilder/lib/lvmbuilder-unimplemented $(DESTDIR)/usr/share/doc/pbuilder/examples/lvmpbuilder/lib
+ $(INSTALL_FILE) pbuilderrc $(PKGDATADIR)
+ $(INSTALL_FILE) pbuilder-uml.conf $(SYSCONFDIR)/pbuilder
+ $(INSTALL_FILE) pbuilder-uml.conf $(PKGDATADIR)
+ $(INSTALL_EXECUTABLE) examples/B90lintian $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/B91dpkg-i $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/B92test-pkg $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/C10shell $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/C11screen $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/D10tmp $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/D20addnonfree $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/D80no-man-db-rebuild $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/D90chrootmemo $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/F90chrootmemo $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/B90list-missing $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/B91debc $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/execute_installtest.sh $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/execute_paramtest.sh $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/pbuilder-distribution.sh $(EXAMPLEDIR)
+ $(INSTALL_EXECUTABLE) examples/rebuild/buildall $(EXAMPLEDIR)/rebuild
+ $(INSTALL_EXECUTABLE) examples/rebuild/getlist $(EXAMPLEDIR)/rebuild
+ $(INSTALL_FILE) examples/rebuild/README $(EXAMPLEDIR)/rebuild
+ $(INSTALL_FILE) examples/pbuilder-test/README $(EXAMPLEDIR)/pbuilder-test
+ $(INSTALL_EXECUTABLE) examples/pbuilder-test/000_prepinstall $(EXAMPLEDIR)/pbuilder-test
+ $(INSTALL_EXECUTABLE) examples/pbuilder-test/001_apprun $(EXAMPLEDIR)/pbuilder-test
+ $(INSTALL_EXECUTABLE) examples/pbuilder-test/002_libfile $(EXAMPLEDIR)/pbuilder-test
+ $(INSTALL_FILE) examples/pbuilder-test/002_sample.c $(EXAMPLEDIR)/pbuilder-test
+ $(INSTALL_EXECUTABLE) examples/pbuilder-test/003_makecheck $(EXAMPLEDIR)/pbuilder-test
+ $(INSTALL_EXECUTABLE) examples/pbuilder-test/004_ldd $(EXAMPLEDIR)/pbuilder-test
+
+ $(INSTALL_FILE) examples/lvmpbuilder/README $(EXAMPLEDIR)/lvmpbuilder
+ $(INSTALL_FILE) examples/lvmpbuilder/STRATEGY $(EXAMPLEDIR)/lvmpbuilder
+ $(INSTALL_EXECUTABLE) examples/lvmpbuilder/lvmbuilder $(EXAMPLEDIR)/lvmpbuilder
+ $(INSTALL_FILE) examples/lvmpbuilder/lib/lvmbuilder-checkparams $(EXAMPLEDIR)/lvmpbuilder/lib
+ $(INSTALL_FILE) examples/lvmpbuilder/lib/lvmbuilder-modules $(EXAMPLEDIR)/lvmpbuilder/lib
+ $(INSTALL_FILE) examples/lvmpbuilder/lib/lvmbuilder-unimplemented $(EXAMPLEDIR)/lvmpbuilder/lib
# install workaround for initscripts -- 2005-12-21
- $(INSTALL_DIRECTORY) $(DESTDIR)/usr/share/doc/pbuilder/examples/workaround
- $(INSTALL_EXECUTABLE) examples/E50-initscripts-2.86.ds1-7.workaround.sh $(DESTDIR)/usr/share/doc/pbuilder/examples/workaround
- $(INSTALL_EXECUTABLE) examples/G50-initscripts-2.86.ds1-11-cdebootstrap0.3.9.sh $(DESTDIR)/usr/share/doc/pbuilder/examples/workaround
+ $(INSTALL_DIRECTORY) $(EXAMPLEDIR)/workaround
+ $(INSTALL_EXECUTABLE) examples/E50-initscripts-2.86.ds1-7.workaround.sh $(EXAMPLEDIR)/workaround
+ $(INSTALL_EXECUTABLE) examples/G50-initscripts-2.86.ds1-11-cdebootstrap0.3.9.sh $(EXAMPLEDIR)/workaround
$(MAKE) -C pbuildd $@
$(MAKE) -C Documentation $@