Files
freeipa/debian/rules
T

73 lines
2.2 KiB
Makefile
Raw Normal View History

2008-12-06 13:16:49 +00:00
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
2012-01-02 16:09:40 +02:00
#export DH_VERBOSE=1
2012-01-02 16:09:40 +02:00
ONLY_CLIENT=0
2011-10-28 15:12:50 +03:00
DESTDIR=$(CURDIR)/debian/tmp
2011-11-02 09:13:16 -04:00
PLATFORM="SUPPORTED_PLATFORM=debian"
2011-10-28 15:12:50 +03:00
override_dh_auto_clean:
2011-11-01 18:04:54 -04:00
for i in daemons install ipapython ipaserver ipa-client; do \
2011-11-01 17:49:50 -04:00
(cd $$i && [ ! -f Makefile ] || $(MAKE) distclean); \
(cd $$i && rm -f COPYING INSTALL depcomp install-sh missing py-compile config.guess config.sub aclocal.m4 config.h.in version.m4); \
done
find . -name "*.pyo" -o -name "*.pyc" -type f -exec rm -f "{}" \;
find . -name "ltmain.sh" -exec rm -f "{}" \;
find . -name "configure" -exec rm -f "{}" \;
2011-11-01 17:49:50 -04:00
rm -rf daemons/ipa-version.h freeipa.spec freeipa.egg-info ipa-client/ipa-client.spec version.m4
2011-11-01 18:04:54 -04:00
rm -rf ipapython/build RELEASE build
dh_clean
2011-10-28 15:12:50 +03:00
rm -rf $(DESTDIR)
2011-11-01 17:52:25 -04:00
override_dh_autoreconf:
make IPA_VERSION_IS_GIT_SNAPSHOT=no version-update
dh_autoreconf; cd ..
2011-10-28 15:12:50 +03:00
override_dh_auto_configure:
2011-11-01 11:50:09 -04:00
dh_auto_configure -Dipa-client
2011-10-29 08:28:11 +03:00
ifneq ($(ONLY_CLIENT), 1)
2014-01-14 23:47:24 +02:00
dh_auto_configure -Ddaemons -- \
--with-openldap \
--with-systemdsystemunitdir=/lib/systemd/system
2011-11-01 11:50:09 -04:00
dh_auto_configure -Dinstall
2011-10-29 08:28:11 +03:00
endif
2011-10-28 15:12:50 +03:00
override_dh_auto_build:
2011-10-29 08:28:11 +03:00
ifneq ($(ONLY_CLIENT), 1)
2011-11-02 09:13:16 -04:00
make $(PLATFORM) IPA_VERSION_IS_GIT_SNAPSHOT=no all
2012-01-02 16:09:40 +02:00
# cd selinux ; make all
2011-10-29 08:28:11 +03:00
else
2011-11-02 09:13:16 -04:00
make $(PLATFORM) IPA_VERSION_IS_GIT_SNAPSHOT=no client
2011-10-29 08:28:11 +03:00
endif
2008-11-26 21:25:42 +00:00
# tests would just fail, they need a proper environment with 389 running et al
2011-11-01 11:54:35 -04:00
override_dh_auto_test:
2011-11-01 12:12:14 -04:00
override_dh_auto_install:
2011-10-29 08:28:11 +03:00
ifneq ($(ONLY_CLIENT), 1)
# Force re-generate of platform support
rm -f ipapython/services.py
2011-11-02 09:13:16 -04:00
make $(PLATFORM) IPA_VERSION_IS_GIT_SNAPSHOT=no install DESTDIR=$(DESTDIR)
2012-01-02 16:09:40 +02:00
# cd selinux
# make $(PLATFORM) IPA_VERSION_IS_GIT_SNAPSHOT=no install DESTDIR=$(DESTDIR)
2011-10-29 08:28:11 +03:00
cd ..
install -m 0644 contrib/completion/ipa.bash_completion $(DESTDIR)/etc/bash_completion.d/ipa
2011-10-29 08:28:11 +03:00
else
2011-11-02 09:13:16 -04:00
make $(PLATFORM) IPA_VERSION_IS_GIT_SNAPSHOT=no client-install DESTDIR=$(DESTDIR)
2011-10-29 08:28:11 +03:00
endif
2008-11-25 21:07:30 +00:00
2012-01-02 16:09:40 +02:00
# purge .la files
find $(CURDIR)/debian/tmp -name "*.la" -type f -exec rm -f "{}" \;
2012-02-17 00:21:46 +02:00
# purge precompiled .pyc/.pyo files
find $(CURDIR)/debian/tmp -name '*.py[c,o]' -exec rm '{}' ';'
# fix permissions
find $(CURDIR)/debian/tmp -name "*.mo" -type f -exec chmod -x "{}" \;
dh_install --list-missing
2011-10-28 15:12:50 +03:00
%:
2012-02-17 00:21:46 +02:00
dh $@ --with quilt,autoreconf,python2