-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.am
72 lines (49 loc) · 1.72 KB
/
Makefile.am
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
SUBDIRS=src doc examples tests
CLEANFILES = *~ \
./tests/*~ \
./tests/cwdaemon/*~ \
./tests/cwdaemon/test/*~
EXTRA_DIST = cwdaemon.spec.in \
patches \
doc/schematics \
examples \
cwdaemon.png TODO README cwsetup.sh \
Doxyfile
dist-hook:
find $(distdir) -type d -name ".deps" | xargs rm -rf
install-data-local:
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
$(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(pkgdatadir)
$(INSTALL_DATA) $(srcdir)/doc/schematics/parallelport_circuit.ps $(DESTDIR)$(pkgdatadir)
$(INSTALL_DATA) $(srcdir)/doc/schematics/serialport_circuit.ps $(DESTDIR)$(pkgdatadir)
$(INSTALL_DATA) $(srcdir)/doc/schematics/parallelport_circuit.jpg $(DESTDIR)$(pkgdatadir)
$(INSTALL_DATA) $(srcdir)/doc/schematics/serialport_circuit.jpg $(DESTDIR)$(pkgdatadir)
# The scripts will be installed as executable.
$(INSTALL_SCRIPT) $(srcdir)/examples/example.sh $(DESTDIR)$(pkgdatadir)
$(INSTALL_SCRIPT) $(srcdir)/examples/example.pl $(DESTDIR)$(pkgdatadir)
$(INSTALL_SCRIPT) $(srcdir)/cwsetup.sh $(DESTDIR)$(pkgdatadir)
$(INSTALL_DATA) $(srcdir)/examples/README $(DESTDIR)$(pkgdatadir)
$(INSTALL_DATA) $(srcdir)/examples/example.c $(DESTDIR)$(pkgdatadir)
$(INSTALL_DATA) $(srcdir)/examples/Makefile.am $(DESTDIR)$(pkgdatadir)
$(INSTALL_DATA) $(srcdir)/examples/Makefile.in $(DESTDIR)$(pkgdatadir)
$(INSTALL_DATA) $(srcdir)/cwdaemon.png $(DESTDIR)$(pkgdatadir)
uninstall-local:
$(RM) $(DESTDIR)/$(pkgdatadir)/*
clean-local:
if ENABLE_GCOV
make gcov-clean
endif
rpm: Makefile
make dist
$(RPMBUILD) -ta $(PACKAGE)-$(VERSION).tar.gz
rm $(PACKAGE)-$(VERSION).tar.gz
if ENABLE_GCOV
gcov:
make clean
make gcov-clean
make gcov -C tests
gcov-clean:
make gcov-clean -C src
make gcov-clean -C tests
endif