File: Makefile

package info (click to toggle)
libaosd 0.2.7-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 512 kB
  • sloc: sh: 2,859; ansic: 1,731; makefile: 82
file content (30 lines) | stat: -rw-r--r-- 729 bytes parent folder | download | duplicates (2)
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
include extra.mk

SUBDIRS = libaosd ${TEXT_DIR} examples
DISTCLEAN = buildsys.mk extra.mk \
	    config.h config.log config.status \
	    libaosd.pc ${TEXT_PKGCONF}
EXTRA = libaosd.pc ${TEXT_PKGCONF}

include buildsys.mk

install-extra:
	for i in ${EXTRA}; do \
	    ${INSTALL_STATUS}; \
	    if ${MKDIR_P} ${DESTDIR}${libdir}/pkgconfig && ${INSTALL} -m 644 $$i ${DESTDIR}${libdir}/pkgconfig/$$i; then \
	    	${INSTALL_OK}; \
	    else \
	    	${INSTALL_FAILED}; \
	    fi \
	done

uninstall-extra:
	for i in ${EXTRA}; do \
	    if [ -f ${DESTDIR}${libdir}/pkgconfig/$$i ]; then \
		    if rm -f ${DESTDIR}${libdir}/pkgconfig/$$i; then \
			    ${DELETE_OK}; \
		    else \
			    ${DELETE_FAILED}; \
		    fi \
	    fi \
	done