Its absence created a problem for the Debian package. During the build, dh_auto_clean results in a call to autoheader, which creates config.h.in. If this isn't then removed, we get a dpkg-source error. Obtained from [1]. [1] https://sources.debian.net/src/wmbattery/2.48-1/debian/patches/clean_config.h.in.patch/
		
			
				
	
	
		
			52 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
include makeinfo
 | 
						|
 | 
						|
all: wmbattery
 | 
						|
 | 
						|
clean:
 | 
						|
	rm -f wmbattery *.o
 | 
						|
 | 
						|
distclean: clean
 | 
						|
	rm -f config.status config.cache config.log makeinfo config.h \
 | 
						|
		config.h.in configure
 | 
						|
 | 
						|
install: all
 | 
						|
	$(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(icondir)
 | 
						|
	$(INSTALL_PROGRAM) wmbattery $(DESTDIR)$(bindir)
 | 
						|
	$(INSTALL_DATA) $(srcdir)/wmbattery.1 $(DESTDIR)$(man1dir)/wmbattery.1
 | 
						|
	$(INSTALL_DATA) $(srcdir)/*.xpm $(DESTDIR)$(icondir)
 | 
						|
 | 
						|
uninstall:
 | 
						|
	rm -rf $(bindir)/wmbattery $(man1dir)/wmbattery.1 $(icondir)
 | 
						|
 | 
						|
OBJS=wmbattery.o acpi.o sonypi.o
 | 
						|
 | 
						|
ifdef USE_HAL
 | 
						|
LIBS+=$(shell pkg-config --libs hal)
 | 
						|
OBJS+=simplehal.o
 | 
						|
CFLAGS+=-DHAL
 | 
						|
simplehal.o: simplehal.c
 | 
						|
	$(CC) $(CFLAGS) $(shell pkg-config --cflags hal) -c simplehal.c -o simplehal.o
 | 
						|
endif
 | 
						|
 | 
						|
ifdef USE_UPOWER
 | 
						|
LIBS+=$(shell pkg-config --libs upower-glib)
 | 
						|
OBJS+=upower.o
 | 
						|
CFLAGS+=-DUPOWER
 | 
						|
upower.o: upower.c
 | 
						|
	$(CC) $(CPPFLAGS) $(CFLAGS) $(shell pkg-config --cflags upower-glib) -c upower.c -o upower.o
 | 
						|
endif
 | 
						|
 | 
						|
wmbattery: $(OBJS)
 | 
						|
	$(CC) -o wmbattery $(LDFLAGS) $(OBJS) $(LIBS)
 | 
						|
 | 
						|
wmbattery.o: wmbattery.c wmbattery.h
 | 
						|
 | 
						|
configure: configure.ac
 | 
						|
	autoconf
 | 
						|
	autoheader
 | 
						|
 | 
						|
config.status: configure
 | 
						|
	./configure
 | 
						|
 | 
						|
makeinfo: autoconf/makeinfo.in config.status
 | 
						|
	./config.status
 |