-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
36 lines (30 loc) · 837 Bytes
/
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
AM_CPPFLAGS = \
-I$(top_srcdir)/include
sbin_PROGRAMS = jnfo
EXTRA_DIST = readme.md license
# jnfo_CPPFLAGS = $(LIBNCURSES_CFLAGS)
# jnfo_LDFLAGS = $(LIBNCURSES_LIBS)
jnfo_SOURCES = \
include/cpu.h \
include/defines.h \
include/filesystem.h \
include/formatter.h \
include/gpu.h \
include/inet.h \
include/mem.h \
include/parse_size.h \
include/power.h \
include/thermal.h \
include/utils.h \
src/main.cpp
# 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)