File: Makefile.am

package info (click to toggle)
capisuite 0.4.5-8
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,612 kB
  • ctags: 1,051
  • sloc: cpp: 3,981; sh: 3,465; python: 446; makefile: 265
file content (48 lines) | stat: -rw-r--r-- 1,289 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
spooldir = @localstatedir@/spool/capisuite
pkgsysconfdir = @sysconfdir@/capisuite

dist_pkglib_DATA = idle.py incoming.py README
python_module_DATA = cs_helpers.py
EXTRA_DIST = cs_helpers.pyin fax.confin answering_machine.confin capisuitefax.in

pkgsysconf_DATA = fax.conf answering_machine.conf

bin_SCRIPTS = capisuitefax

SUBDIRS = waves

capisuitefax: capisuitefax.in
	rm -f $@
	sed -e 's,@\PYTHON@,$(PYTHON),g' $< >$@
	chmod 755 $@

.pyin.py:
	rm -f $@
	if test $(sfftobmp_major_version) = "2"; then \
		sed -e 's,@\pkgsysconfdir@,$(pkgsysconfdir),g' \
		    -e 's,#2 ,,g' $< >$@ ;\
	else \
		sed -e 's,@\pkgsysconfdir@,$(pkgsysconfdir),g' \
		    -e 's,#3 ,,g' $< >$@ ;\
	fi

.confin.conf: 
	rm -f $@
	sed -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
            -e 's,@spooldir\@,$(spooldir),g' $< >$@

uninstall-hook:
	-rmdir $(DESTDIR)$(pkglibdir)
	-rmdir $(DESTDIR)$(spooldir)/sendq $(DESTDIR)$(spooldir)/done \
               $(DESTDIR)$(spooldir)/failed $(DESTDIR)$(spooldir)/users $(DESTDIR)$(spooldir)

install-exec-hook:
	$(mkinstalldirs) $(DESTDIR)$(spooldir)/sendq
	$(mkinstalldirs) $(DESTDIR)$(spooldir)/done
	$(mkinstalldirs) $(DESTDIR)$(spooldir)/failed
	$(mkinstalldirs) $(DESTDIR)$(spooldir)/users

clean-local:
	rm -f cs_helpers.py
	rm -f fax.conf answering_machine.conf