 bdab09fec2
			
		
	
	
		bdab09fec2
		
	
	
	
	
		
			
			Instead of using iniparser, which is rarely packaged, and is an external dependency, use an embedded copy of inih instead, which is only a hundred or so lines, and can do pretty much the same as iniparser. The benefit is one less external dependency, and it makes it easier for distributions to package dunst. Signed-off-by: Gergely Nagy <algernon@balabit.hu>
		
			
				
	
	
		
			56 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| # dunst - Notification-daemon
 | |
| # See LICENSE file for copyright and license details.
 | |
| 
 | |
| include config.mk
 | |
| 
 | |
| SRC = draw.c dunst.c ini.c
 | |
| OBJ = ${SRC:.c=.o}
 | |
| 
 | |
| all: doc options dunst
 | |
| 
 | |
| options:
 | |
| 	@echo dunst build options:
 | |
| 	@echo "CFLAGS   = ${CFLAGS}"
 | |
| 	@echo "LDFLAGS  = ${LDFLAGS}"
 | |
| 	@echo "CC       = ${CC}"
 | |
| 
 | |
| .c.o:
 | |
| 	@echo CC -c $<
 | |
| 	@${CC} -c $< ${CFLAGS}
 | |
| 
 | |
| ${OBJ}: config.mk
 | |
| 
 | |
| dunst: draw.o dunst.o ini.o
 | |
| 	@echo CC -o $@
 | |
| 	@${CC} ${CFLAGS} -o $@ dunst.o draw.o ini.o ${LDFLAGS}
 | |
| 
 | |
| clean:
 | |
| 	@echo cleaning
 | |
| 	@rm -f ${OBJ}
 | |
| 	@rm -f dunst
 | |
| 	@rm -f dunst.1
 | |
| 
 | |
| doc: dunst.1
 | |
| dunst.1: README.pod
 | |
| 	pod2man $< > $@
 | |
| 
 | |
| install: all
 | |
| 	@echo installing executables to ${DESTDIR}${PREFIX}/bin
 | |
| 	@mkdir -p ${DESTDIR}${PREFIX}/bin
 | |
| 	@cp -f dunst ${DESTDIR}${PREFIX}/bin
 | |
| 	@chmod 755 ${DESTDIR}${PREFIX}/bin/dunst
 | |
| 	@echo installing manual pages to ${DESTDIR}${MANPREFIX}/man1
 | |
| 	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
 | |
| 	@cp -f dunst.1 ${DESTDIR}${MANPREFIX}/man1/
 | |
| 	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/dunst.1
 | |
| 	@mkdir -p "${DESTDIR}${PREFIX}/share/dunst"
 | |
| 	@ cp -f dunstrc ${DESTDIR}${PREFIX}/share/dunst
 | |
| 
 | |
| uninstall:
 | |
| 	@echo removing executables from ${DESTDIR}${PREFIX}/bin
 | |
| 	@rm -f ${DESTDIR}${PREFIX}/bin/dunst
 | |
| 	@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
 | |
| 	@rm -f ${DESTDIR}${MANPREFIX}/man1/dunst
 | |
| 
 | |
| .PHONY: all options clean dist install uninstall
 |