-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
53 lines (44 loc) · 1.43 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
AM_CPPFLAGS = \
-I$(top_srcdir)/vendor \
-I$(top_srcdir)/include
sbin_PROGRAMS = fantable
EXTRA_DIST = data/table data/config readme.md license
fantable_SOURCES = \
src/main.cpp \
include/atexit.h \
include/jetson_clocks.h \
include/load_config.h \
include/defines.h \
include/interpolate.h \
include/log.h \
include/parse_table.h \
include/pid.h \
include/status.h \
include/thermal.h \
include/utils.h \
vendor/inih/cpp/INIReader.h \
vendor/inih/cpp/INIReader.cpp \
vendor/inih/ini.h \
vendor/inih/ini.c
# jft_daemon_CPPFLAGS = $(LIBDAEMON_CFLAGS)
# jft_daemon_LDFLAGS = $(LIBDAEMON_LIBS)
sytemdsysdir = $(sysconfdir)/systemd/system
sytemdsys_DATA = data/fantable.service
.service: .service.in
$(AM_V_GEN)sed -e 's,@prefix\@,$(prefix),g' $< > $@
$(AM_V_GEN)sed -e 's,@exec_prefix\@,$(exec_prefix),g' $< > $@
$(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' $< > $@
$(AM_V_GEN)sed -e 's,@sysconfdir\@,$(sysconfdir),g' $< > $@
pkgsysconfdir=$(sysconfdir)/fantable
pkgsysconf_DATA = data/table data/config
# rules to package a .deb file
debfile_name=$(PACKAGE_NAME)-$(PACKAGE_VERSION)
deb: dist
# extract dist into a new directory
tar xzf $(top_builddir)/$(debfile_name).tar.gz
cp -r $(top_srcdir)/debian $(builddir)/$(debfile_name)
# build into the extracted directory
cd $(debfile_name) && \
debuild --no-tgz-check -us -uc -tc
# clean uo
rm -r $(debfile_name)