Updated Makefile, fixed issue #44

- When header files get changed, the relevant object will get recompiled.
This commit is contained in:
Fufu Fang 2019-09-02 17:56:23 +01:00
parent ee397d1513
commit 765f4e00d0
No known key found for this signature in database
GPG Key ID: 0F6BB5EF6F8BB729
6 changed files with 12 additions and 7 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
*.o
*.kate-swp
httpdirfs
.depend
doc/html

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -3,7 +3,6 @@
#include "network.h"
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -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