Fix a few minor issues in the makefile & remove debug target
* Fix a bug that would cause distclean to fail if config.h didn't exist * Make sure the options target is run when running make dunst * Remove debug target as the optimization override it was doing was only applied in the linking phase. Optimizations are applied during compilation, not linking, and I don't see any easy way to fix that so let's drop the target entirely.
This commit is contained in:
		
							parent
							
								
									655abd7cc8
								
							
						
					
					
						commit
						ae87efc0a2
					
				
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							| @ -33,17 +33,13 @@ config.h: config.def.h | ||||
| 	@echo creating $@ from $< | ||||
| 	@cp $< $@ | ||||
| 
 | ||||
| dunst: ${OBJ} main.o | ||||
| dunst: options ${OBJ} main.o | ||||
| 	@echo "${CC} ${CFLAGS} -o $@ ${OBJ} ${LDFLAGS}" | ||||
| 	@${CC} ${CFLAGS} -o $@ ${OBJ} main.o ${LDFLAGS} | ||||
| 
 | ||||
| dunstify: | ||||
| 	@${CC} ${CFLAGS} -o $@ dunstify.c -std=c99 $(shell pkg-config --libs --cflags glib-2.0 libnotify) | ||||
| 
 | ||||
| debug: ${OBJ} | ||||
| 	@echo CC -o $@ | ||||
| 	@${CC} ${CFLAGS} -O0 -o dunst ${OBJ} ${LDFLAGS} | ||||
| 
 | ||||
| clean-dunst: | ||||
| 	rm -f dunst ${OBJ} main.o | ||||
| 	rm -f org.knopwob.dunst.service | ||||
| @ -60,7 +56,7 @@ clean: clean-dunst clean-dunstify clean-doc test-clean | ||||
| distclean: clean clean-config | ||||
| 
 | ||||
| clean-config: | ||||
| 	rm config.h | ||||
| 	rm -f config.h | ||||
| 
 | ||||
| doc: docs/dunst.1 | ||||
| docs/dunst.1: docs/dunst.pod | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Nikos Tsipinakis
						Nikos Tsipinakis