better-enums/Makefile
Paul Grinberg 172b22fa9d Provided Debian Packaging files
PROBLEM STATEMENT:
Better-enums currently does not provide a way to deliver its contents as
a Debian package

SOLUTION:
Added Debian packaging files

DETAILS:
Follows the standard Debian Packaging rules. See https://www.debian.org/doc/manuals/debmake-doc/index.en.html

IMPACT ANALYSIS:
When making future releases, `debian/changelog` needs to be updated

TESTING:
- Ran `dpkg-buildpackage -us -uc -b`
- Ran `dpkc -c` on resulting DEB file
- Ran `lintian` on resulting DEB file
- Installed resulting DEB file and compiled against it using `pkg-config
--cflags better-enums`
2022-09-06 10:11:17 -05:00

21 lines
573 B
Makefile

prefix = /usr
includedir = $(prefix)/include
libdir = $(prefix)/lib/$(shell dpkg-architecture | grep DEB_TARGET_MULTIARCH | awk -F= '{print $$2}')
build:
install: enum.h better-enums.pc
install -D -m 444 enum.h $(DESTDIR)$(includedir)/better-enums/enum.h
install -D -m 644 better-enums.pc $(DESTDIR)$(libdir)/pkgconfig/better-enums.pc
dpkg-parsechangelog | grep '^Version: ' >> $(DESTDIR)$(libdir)/pkgconfig/better-enums.pc
clean:
rm -rf $(DESTDIR)
deb:
dpkg-buildpackage -us -uc -b
.PHONY: build install clean deb
# vi: ts=8:sw=8:noai:noexpandtab:filetype=make