1 | # schroot Makefile template |
---|
2 | # |
---|
3 | # |
---|
4 | # Copyright © 2004-2009 Roger Leigh <rleigh@debian.org> |
---|
5 | # |
---|
6 | # schroot is free software: you can redistribute it and/or modify it |
---|
7 | # under the terms of the GNU General Public License as published by |
---|
8 | # the Free Software Foundation, either version 3 of the License, or |
---|
9 | # (at your option) any later version. |
---|
10 | # |
---|
11 | # schroot is distributed in the hope that it will be useful, but |
---|
12 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
14 | # General Public License for more details. |
---|
15 | # |
---|
16 | # You should have received a copy of the GNU General Public License |
---|
17 | # along with this program. If not, see |
---|
18 | # <http://www.gnu.org/licenses/>. |
---|
19 | # |
---|
20 | ##################################################################### |
---|
21 | |
---|
22 | include $(top_srcdir)/scripts/global.mk |
---|
23 | |
---|
24 | localedir = $(datadir)/locale |
---|
25 | |
---|
26 | LOCAL_CXXFLAGS = $(SCHROOT_CFLAGS) -I$(top_srcdir)/bin |
---|
27 | |
---|
28 | DEFS = -DLOCALEDIR=\"$(localedir)\" -D_GNU_SOURCE |
---|
29 | |
---|
30 | noinst_LTLIBRARIES = libschroot.la |
---|
31 | |
---|
32 | bin_PROGRAMS = schroot |
---|
33 | |
---|
34 | libschroot_la_SOURCES = \ |
---|
35 | schroot-options-base.h \ |
---|
36 | schroot-options-base.cc \ |
---|
37 | schroot-main-base.h \ |
---|
38 | schroot-main-base.cc \ |
---|
39 | schroot-main.h \ |
---|
40 | schroot-main.cc |
---|
41 | libschroot_la_LIBADD = $(top_builddir)/bin/schroot-base/libschroot-base.la |
---|
42 | |
---|
43 | schroot_SOURCES = \ |
---|
44 | schroot-options.h \ |
---|
45 | schroot-options.cc \ |
---|
46 | schroot.cc |
---|
47 | schroot_LDADD = libschroot.la |
---|
48 | |
---|
49 | install-exec-hook: |
---|
50 | # Install setuid root. |
---|
51 | chmod 4755 "$(DESTDIR)$(bindir)/schroot" |
---|
52 | |
---|
53 | install-data-hook: |
---|
54 | $(MKDIR_P) $(DESTDIR)$(SCHROOT_CONF_CHROOT_D) |
---|
55 | $(MKDIR_P) $(DESTDIR)$(SCHROOT_MOUNT_DIR) |
---|
56 | $(MKDIR_P) $(DESTDIR)$(SCHROOT_SESSION_DIR) |
---|
57 | $(MKDIR_P) $(DESTDIR)$(SCHROOT_FILE_UNPACK_DIR) |
---|
58 | $(MKDIR_P) $(DESTDIR)$(SCHROOT_OVERLAY_DIR) |
---|
59 | $(MKDIR_P) $(DESTDIR)$(SCHROOT_UNDERLAY_DIR) |
---|
60 | |
---|