Updated Makefile, fixed issue #44
- When header files get changed, the relevant object will get recompiled.
This commit is contained in:
parent
ee397d1513
commit
765f4e00d0
|
@ -1,3 +1,5 @@
|
|||
*.o
|
||||
*.kate-swp
|
||||
httpdirfs
|
||||
.depend
|
||||
doc/html
|
||||
|
|
|
@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
### Changed
|
||||
- Updated Makefile, fixed issue #44
|
||||
- When header files get changed, the relevant object will get recompiled.
|
||||
|
||||
## [1.1.9] - 2019-09-02
|
||||
### Changed
|
||||
|
|
8
Makefile
8
Makefile
|
@ -37,4 +37,10 @@ uninstall:
|
|||
-rm -f $(DESTDIR)$(prefix)/bin/httpdirfs
|
||||
-rm -f $(DESTDIR)$(prefix)/share/man/man1/httpdirfs.1
|
||||
|
||||
.PHONY: all doc install clean distclean uninstall
|
||||
depend: .depend
|
||||
.depend: src/*.c
|
||||
rm -f ./.depend
|
||||
$(CC) $(CFLAGS) -MM $^ -MF ./.depend;
|
||||
include .depend
|
||||
|
||||
.PHONY: all doc install clean distclean uninstall depend
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
#include "cache.h"
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include "network.h"
|
||||
|
||||
#include <getopt.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
#include <pthread.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/**
|
||||
* \brief the maximum length of a path and a URL.
|
||||
|
@ -28,7 +27,6 @@ void PTHREAD_MUTEX_LOCK(pthread_mutex_t *x);
|
|||
*/
|
||||
void PTHREAD_MUTEX_UNLOCK(pthread_mutex_t *x);
|
||||
|
||||
|
||||
/**
|
||||
* \brief append a path
|
||||
* \details This function appends a path with the next level, while taking the
|
||||
|
@ -43,5 +41,4 @@ char *path_append(const char *path, const char *filename);
|
|||
*/
|
||||
int64_t round_div(int64_t a, int64_t b);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue